<?php
trait Pubpro{
    public function getPro(){
        echo __TRAIT__;
    }
}

class MOnkey{
    use Pubpro;
    public function Getp(){
        echo __TRAIT__;
    }
}

$m1=new MOnkey();
$m1->getPro();